package com.weishenai.customerassistant.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author weishenai
 * @since 2021-11-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_role")
@ApiModel(value = "SysRoleEntity对象", description = "")
public class SysRoleEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("角色名")
    @TableField("name")
    private String name;

    @ApiModelProperty("角色代号")
    @TableField("code")
    private String code;

//    @ApiModelProperty(value = "状态")
//    @TableField("statu")
//    private Integer statu;

    @TableField(exist = false)
    private List<Long> menuIds = new ArrayList<>();
}
